package com.cqc.activityoptioncompat01;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class Activity_A extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_a);
        findViewById(R.id.btn).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(Activity_A.this,Activity_C.class));
//                overridePendingTransition(R.anim.bottom_to_current,R.anim.current_to_top);
//                overridePendingTransition(R.anim.right_to_current,0);//容易黑屏
                overridePendingTransition(R.anim.right_to_current,R.anim.current_stay_scale);
//                overridePendingTransition(R.anim.right_to_current,R.anim.current_stay_rotate);
//                overridePendingTransition(R.anim.right_to_current,R.anim.current_stay_translate);
//                overridePendingTransition(R.anim.right_to_current,R.anim.current_stay_alpha);
            }
        });

    }
}
